ImageStorageOffset.getPixelAtOffset

Get a pixel given the position.

  1. Color getPixelAtOffset(size_t offset)
    interface ImageStorageOffset(Color)
    @nogc @safe
    Color
    getPixelAtOffset
    (
    size_t offset
    )
  2. Color getPixelAtOffset(size_t offset)
  3. size_t count [@property getter]
  4. size_t count [@property getter]

Parameters

offset size_t

The offset of the pixel

Return Value

Type: Color

The pixel color at point.

Throws

If offset coordinate is outside of the image boundary.

Meta